#ifndef WindowBorder_First
#define WindowBorder_First
#ifdef __GNUG__
#pragma interface
#endif

#include "Window.h"
#include "CompVObject.h"

class WindowButton;
class Menu;

const int
	cIdWindowTitle    = cIdFirstUser + 1,
	cIdIconLabel      = cIdFirstUser + 2,
	cIdCloseBox       = cIdFirstUser + 3,
	cIdBottom         = cIdFirstUser + 4;

//---- WindowBorder ------------------------------------------------------------

class WindowBorder: public CompositeVObject {
protected:
	bool fixed;
public:
	MetaDef(WindowBorder);

	WindowBorder(bool fix, VObject *title, VObject *inner);
	~WindowBorder();
	virtual void SetTitle(const char*);
	Command *DoMenuCommand(int cmd);
	void Control(int id, int part, void *vp);
};

extern VObject *MakeWindowBorder(WindowType wt, VObject *in,
					char *title, bool, bool fixed);
extern VObject *MakeEtWindowBorder(WindowType wt, VObject *in,
					char *title, bool, bool fixed);

#endif

